<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>DOM事件</title>
</head>
<body>
<img id="imgid" src="../网站设计雏形/images/banner01.jpg" alt="">
<button onclick="demo()">按钮</button>
<script>
    function demo() {
        document.getElementById("imgid").src="./202020.png";
    }
</script>
<hr>
<pre>
    1.把一个照片 点击按钮之后换成另外一个照片
</pre>
</body>
</html>